package com.ruoyi.modules.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.modules.domain.NumRecord;
import org.apache.ibatis.annotations.Param;

/**
 * 次数记录Mapper接口
 *
 * @author ruoyi
 * @date 2022-02-03
 */
public interface NumRecordMapper extends BaseMapper<NumRecord> {

    int addNum(@Param("userId") Long userId, @Param("num") Long num);

    int subNum(@Param("userId") Long userId, @Param("num") Long num);

    int useNum(@Param("userId") Long userId, @Param("num") Long num);
}
